/*******************************************************************

    Author: Xiao
    Date: 2022/3/28 10:42

*******************************************************************/

package logs

import (
	"github.com/yc-xiao6/logx"
	"mcr/pkg/config"
)

var Log = new(logx.LoggerObj)

func init() {
	Log = logx.NewLoggerObj(logx.Config{
		CallInfo:     true,
		ShortPath:    true,
		LogFileClose: config.ConfigValue.Debug,
		ConsoleClose: !config.ConfigValue.Debug,
		Path:         "logs/error_log.log",
	})
}
